<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>搜题工具</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css"
          integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
</head>
<body>
<div class="container-fluid fixed-top bg-info">
    <div class="row" style="margin-top: 20px;">
        <div class="col"></div>
        <div class="col-6">
            <form action="/search" method="post">
                <div class="input-group mb-3">
                    <input type="text" class="form-control" placeholder="输入需要查询的内容" aria-label="输入需要查询的内容"
                           aria-describedby="basic-addon2" name="keywords">
                    <input type="submit" class="btn btn-outline-secondary bg-light text-dark" value="查询">
                </div>
            </form>
        </div>
        <div class="col"></div>
    </div>
</div>
<div class="container sticky-top" style="margin-top: 120px;">
    {{range .}}
        <div class="m-3">
            <div class="card shadow p-3 mb-5 bg-white rounded">
                <div class="card-body">
                    <h5 class="card-title">【答案】{{.a}}</h5>
                    <p class="card-text">{{.q}}</p>
                </div>
            </div>
        </div>
    {{end}}
</div>
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.slim.min.js"
            integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
            crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
            integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
            crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js"
            integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
            crossorigin="anonymous"></script>
</body>
</html>